using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using DirectShowLib;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        VideoCapture.VideoCapture ob;

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            IVideoWindow video = null;

            ob = new VideoCapture.VideoCapture();
            ob.InitialVideo(@"e:\goodAudio.avi", panel1);
            ob.Capture();

            //int hr = video.put_Owner(panel1.Handle);

            //video.put_WindowStyle(WindowStyle.Child | WindowStyle.ClipChildren);

            //video.SetWindowPosition(0, 0, panel1.Width, panel1.Height);

            //video.put_Visible(OABool.True);

            

            
        }

        private void button2_Click(object sender, EventArgs e)
        {
            ob.Stop();
        }
    }
}